#
# Be sure to run `pod lib lint OCRSdk.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'OCRSdk'
  s.version          = '0.1.21'
  s.summary          = 'A short sdfsd'

# This description is used to generate tags and improve search results.
#   * Think: What does it do? Why did you write it? What is the focus?
#   * Try to keep it short, snappy and to the point.
#   * Write the description between the DESC delimiters below.
#   * Finally, don't worry about the indent, CocoaPods strips it!

  s.description      = <<-DESC
TODO: Add long description of the pod here.
                       DESC

  s.homepage         = 'https://git.ztosys.com/tuxi/BDOCRSdk'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'guohongqi9010' => 'guohongqi9010@zto.com' }
  s.source           = { :git => 'http://git.ztosys.com/tuxi/BDOCRSdk.git', :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

  s.ios.deployment_target = '10.0'
  
#  s.libraries = "c++", "iconv", "z","resolv","stdc++.6.0.9"
  s.libraries = "c++", "iconv"

  
  s.vendored_libraries = 'OCRSdk/Classes/lib/*.a'
  s.vendored_frameworks = 'OCRSdk/Classes/lib/*.framework'
  
#  s.resource_bundles = {
#     'OCRSdk' => ['OCRSdk/Assets/*']
#  }
  s.resources = 'OCRSdk/Resources/BDOCRSdk.bundle'

  s.frameworks = 'UIKit', 'MapKit', 'AVFoundation','CoreMedia'
  s.dependency 'ModuleManager'

#  s.source_files = 'OCRSdk/Classes/**/*'

  s.pod_target_xcconfig = {
    'CLANG_CXX_LIBRARY' => "libstdc++",
    'CLANG_WARN_DOCUMENTATION_COMMENTS' => 'NO',
    'OTHER_LDFLAGS' => '-ObjC',
    'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64'
#    'ARCHS[sdk=iphonesimulator*]' => '$(ARCHS_STANDARD_64_BIT)'
  }
  s.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64'}
  s.static_framework = true
  
  
  s.subspec 'Interface' do |ss|
    ss.source_files = 'OCRSdk/Classes/Interface/*.{h,mm,m}'

    ss.subspec 'Header' do |ssss|
          ssss.source_files = 'OCRSdk/Classes/Interface/include/*.h'
    end
  end


end

#s.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64'}
# s.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64'}
#
# s.subspec "Crash" do |crash|
#     ....
#     crash.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64'}
#     crash.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64'}
# end
#end
